import { localStorageUtils } from "@/utils/util";
export default {
  namespaced: true,
  state: {
    petCategoryList: localStorageUtils.get("petCategoryList")?.data || [],
  },
  getters: {
    get_petCategoryList: () => {
      return localStorageUtils.get("petCategoryList")?.data || [];
    },
  },
  mutations: {
    PUSH_PETCATEGORYLIST(state, data) {
      state.petCategoryList.push(data);
      console.log("state.petCategoryList", state.petCategoryList);
      localStorageUtils.set("petCategoryList", { data: state.petCategoryList });
    },
  },
};
